/**
 * plan edit logic.
 */
function loadTaskForm(stype) {
	$('#planFormContainer').load('/loadPlanForm?stype='+stype, function(){
		$('#planFormContainer').trigger('create');
	});
}

function pageinit(){
	$( "#select-stype" ).on('change', function(event) {
		 var stype = $('#select-stype').val();
		 loadPlanForm(stype);
		 event.preventDefault();
	});
}

$(document).on('pageinit', function() {
	pageinit();
});
